﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace TestGame
{
    class Tile : Sprite
    {
        public Tile(int x, int y, TileProto tp)
            : base(x, y, tp.assetName)
        {
            Layer = 0;
            CurrentState = State.Background;
        }

        public override void Clicked(SpriteBatch batch, GraphicsDevice graphics, Sprite clicked)
        {
            Game.player.lastClicked = null;
        }
    }
}
